package cn.demengsite.dao;

import cn.demengsite.model.ProductPromotion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PromotionDAO {

    List<ProductPromotion> getPromotion(ProductPromotion promotion);

    int deletePromotionById(@Param("id") String id);

    int setNewPromotion(ProductPromotion promotion);

}
